package com.sunshine.student_register.database.student;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @author sunshine
 * @date 2020/5/30
 * 学生表实体类
 */

@Entity
public class StudentEntity {

    @PrimaryKey
    private int id;     //学生id

    private String password;    //登录密码

    private String name;    //学生姓名

    private int startYear;  //入学年

    private int old;    //年龄

    private String department;  //专业类别

    public StudentEntity(int id, String password, String name, int startYear, int old, String department) {
        this.id = id;
        this.password = password;
        this.name = name;
        this.startYear = startYear;
        this.old = old;
        this.department = department;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStartYear() {
        return startYear;
    }

    public void setStartYear(int startYear) {
        this.startYear = startYear;
    }

    public int getOld() {
        return old;
    }

    public void setOld(int old) {
        this.old = old;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
